﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LDM.Sys.ServiceAPI.Model.Models
{
    /// <summary>
    /// 后台管理用户登录信息
    /// </summary>
    public class AdminUser
    {
        /// <summary>
        /// 基础用户信息
        /// </summary>
        public BaseUserInfo BaseUser { get; set; }

        /// <summary>
        /// 用户权限资源信息
        /// </summary>
        public AuthorityInfo Authority { get; set; }
    }

    /// <summary>
    /// 用户基础信息
    /// </summary>
    public class BaseUserInfo
    {
        /// <summary>
        /// Id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public int NickName { get; set; }
    }

    /// <summary>
    /// 用户权限资源信息
    /// </summary>
    public class AuthorityInfo
    {
        /// <summary>
        /// 角色code
        /// </summary>
        public List<string> RoleCodes { get; set; }

        /// <summary>
        /// 菜单code
        /// </summary>
        public List<string> MenuCodes { get; set; }

        /// <summary>
        /// 按钮code
        /// </summary>
        public List<string> Buttons { get; set; }

    }
}
